@foreach($list as $key=>$value)
    <label>
        <input type="checkbox" name="{{ $inputName }}" class="{{ get_value($config, 'class', '') }}" @if($key == $inputValue) checked @endif > {{ $value }}
    </label>
@endforeach